package com.cloudkinto.service.company.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class ProductQueryReq extends TemuPublicParam {
    private String cwProviderCode;

    private String cwProviderName;

    private String cwCustomCode;

    private String cwAppKey;

    private String cwAccessToken;
    @ApiModelProperty(value = "平台,默认 Temu", required = true)
    private String platform;
    @ApiModelProperty(value = "对接仓仓库商品 skuCodeList", required = false)
    private List<String> cwSkuCodeList;

    private int pageSize = 200;

    private int pageNo = 1;
    @ApiModelProperty(value = "毫秒时间戳，最近更新时间 from；查询更新时间在指定范围内的货品",required = false)
    private Long updateTimeFrom;
    @ApiModelProperty(value = "毫秒时间戳，最近更新时间 to； updateFrom 和 updateTo 之间无\n" +
            "时间范围限制，只传 updateTimeTo 查询更新时间在此之前的全部", required = false)
    private Long updateTimeTo;

    public int getPageSize() {
        return Math.min(pageSize, 2000);
    }
}
